<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SSE案例</title>
</head>
<body>
    <h1>SSE案例前端页面</h1>
    <div id="messages"></div>
    <form id="messageForm">
      <input type="text" id="messageInput" placeholder="输入消息内容" required>
      <button type="submit">发送</button>
    </form>
    <script src="/js/app.js"></script>
</body>
</html>